home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / fortran / f2c_exe.zip / INDEX < prev    next >
Text File  |  1991-06-10  |  13KB  |  335 lines

  1.  
  2. ====== index for f2c ============
  3.  
  4. FILES:
  5.  
  6. f2c.h    Include file necessary for compiling output of the converter.
  7.     See the second NOTE below.
  8.  
  9. f2c.1    Man page for f2c.
  10.  
  11. f2c.1t    Source for f2c.1 (to be processed by troff -man or nroff -man).
  12.  
  13. libf77    Library of non I/O support routines the generated C may need.
  14.     Fortran main programs result in a C function named MAIN__ that
  15.     is meant to be invoked by the main() in libf77.
  16.  
  17. libi77    Library of Fortran I/O routines the generated C may need.
  18.     Note that some vendors (e.g., BSD, Sun and MIPS) provide a
  19.     libF77 and libI77 that are incompatible with f2c -- they
  20.     provide some differently named routines or routines with the
  21.     names that f2c expects, but with different calling sequences.
  22.     On such systems, the recommended procedure is to merge
  23.     libf77 and libi77 into a single library, say libf2c, to install
  24.     it where you can access it by specifying -lf2c , and to adjust
  25.     the definition of link_msg in sysdep.c appropriately.
  26.  
  27. f2c.ps    Postscript for a technical report on f2c.  After you strip the
  28.     mail header, the first line should be "%!PS".
  29.  
  30. fixes    The complete change log, reporting bug fixes and other changes.
  31.     (Some recent change-log entries are given below).
  32.  
  33. fc    A shell script that uses f2c and imitates much of the behavior
  34.     of commonly found f77 commands.  You will almost certainly
  35.     need to adjust some of the shell-variable assignments to make
  36.     this script work on your system.
  37.  
  38.  
  39. SUBDIRECTORY:
  40.  
  41. f2c/src    Source for the converter itself, including a file of checksums
  42.     and source for a program to compute the checksums (to verify
  43.     correct transmission of the source), is available: ask netlib to
  44.         send all from f2c/src
  45.     If the checksums show damage to just a few source files, or if
  46.     the change log file (see "fixes" below) reports corrections to
  47.     some source files, you can request those files individually
  48.     "from f2c/src".  For example, to get defs.h and xsum0.out, you
  49.     would ask netlib to
  50.         send defs.h xsum0.out from f2c/src
  51.     "all from f2c/src" is 649038 bytes long.
  52.  
  53.     Tip: if asked to send over 99,000 bytes in one request, netlib
  54.     breaks the shipment into 1000 line pieces and sends each piece
  55.     separately (since otherwise some mailers might gag).  To avoid
  56.     the hassle of reassembling the pieces, try to keep each request
  57.     under 99,000 bytes long.  The final number in each line of
  58.     xsum0.out gives the length of each file in f2c/src.  For
  59.     example,
  60.         send exec.c expr.c from f2c/src
  61.         send format.c format_data.c from f2c/src
  62.     will give you slightly less hassle than
  63.         send exec.c expr.c format.c format_data.c from f2c/src
  64.  
  65.     If you have trouble generating gram.c, you can ask netlib to
  66.         send gram.c from f2c/src
  67.     Then `xsum gram.c` should report
  68.         gram.c    ecbbc041    57191
  69.  
  70. NOTE:    For now, you may exercise f2c by sending netlib a message whose
  71.     first line is "execute f2c" and whose remaining lines are
  72.     the Fortran 77 source that you wish to have converted.
  73.     Return mail brings you the resulting C, with f2c's error
  74.     messages between #ifdef uNdEfInEd and #endif at the end.
  75.     (To understand line numbers in the error messages, regard
  76.     the "execute f2c" line as line 0.  It is stripped away by
  77.     the netlib software before f2c sees your Fortran input.)
  78.     Options described in the man page may be transmitted to
  79.     netlib by having the first line of input be a comment
  80.     whose first 6 characters are "c$f2c " and whose remaining
  81.     characters are the desired options, e.g., "c$f2c -R -u".
  82.     This scheme may change -- ask netlib to
  83.                send index from f2c
  84.         if you do not get the behavior you expect.
  85.  
  86.     During the initial experimental period, incoming Fortran
  87.     will be saved in a file.  Don't send any secrets!
  88.  
  89.  
  90. BUGS:    Please send bug reports (including the shortest example
  91.     you can find that illustrates the bug) to research!dmg
  92.     or dmg@research.att.com .  You might first check whether
  93.     the bug goes away when you turn optimization off.
  94.  
  95.  
  96. NOTE:    f2c.h defines several types, e.g., real, integer, doublereal.
  97.     The definitions in f2c.h are suitable for most machines, but if
  98.     your machine has sizeof(double) > 2*sizeof(long), you may need
  99.     to adjust f2c.h appropriately.  f2c assumes
  100.         sizeof(doublecomplex) = 2*sizeof(doublereal)
  101.         sizeof(doublereal) = sizeof(complex)
  102.         sizeof(doublereal) = 2*sizeof(real)
  103.         sizeof(real) = sizeof(integer)
  104.         sizeof(real) = sizeof(logical)
  105.         sizeof(real) = 2*sizeof(shortint)
  106.     EQUIVALENCEs may not be translated correctly if these
  107.     assumptions are violated.
  108.  
  109.     There exists a C compiler that objects to the lines
  110.         typedef VOID C_f;    /* complex function */
  111.         typedef VOID H_f;    /* character function */
  112.         typedef VOID Z_f;    /* double complex function */
  113.     in f2c.h .  If yours is such a compiler, do two things:
  114.     1. Complain to your vendor about this compiler bug.
  115.     2. Find the line
  116.         #define VOID void
  117.        in f2c.h and change it to
  118.         #define VOID int
  119.     (For readability, the f2c.h lines shown above have had two
  120.     tabs inserted before their first character.)
  121.  
  122. FTP:    All the material described above is now available by anonymous
  123.     ftp from research.att.com -- look in dist/f2c .  You must
  124.     uncompress the .Z files once you have a copy of them, e.g., by
  125.         uncompress *.Z
  126.  
  127. -----------------
  128. Recent change log (partial)
  129. -----------------
  130.  
  131. Tue Jan 15 12:00:24 EST 1991:
  132.   Fix bug when two equivalence groups are merged, the second with
  133. nonzero offset, and the result is then merged into a common block.
  134. Example:
  135.       INTEGER W(3), X(3), Y(3), Z(3)
  136.       COMMON /ZOT/ Z
  137.       EQUIVALENCE (W(1),X(1)), (X(2),Y(1)), (Z(3),X(1))
  138. ***** W WAS GIVEN THE WRONG OFFSET
  139.   Recognize Fortran 90's optional NML= in NAMELIST READs and WRITEs.
  140. (Currently NML= and FMT= are treated as synonyms -- there's no
  141. error message if, e.g., NML= specifies a format.)
  142.   libi77: minor adjustment to allow internal READs from character
  143. string constants in read-only memory.
  144.  
  145. Wed Jan 23 00:38:48 EST 1991:
  146.   Allow hex, octal, and binary constants to have the qualifying letter
  147. (z, x, o, or b) either before or after the quoted string containing the
  148. digits.  For now this change will not be reflected in f2c.ps .
  149.  
  150. Tue Jan 29 16:23:45 EST 1991:
  151.   Arrange for character-valued statement functions to give results of
  152. the right length (that of the statement function's name).
  153.  
  154. Wed Jan 30 07:05:32 EST 1991:
  155.   More tweaks for character-valued statement functions: an error
  156. check and an adjustment so a right-hand side of nonconstant length
  157. (e.g., a substring) is handled right.
  158.  
  159. Thu Jan 31 13:53:44 EST 1991:
  160.   Add a test after the cleanup call generated for I/O statements with
  161. ERR= or END= clauses to catch the unlikely event that the cleanup
  162. routine encounters an error.
  163.  
  164. Tue Feb  5 01:39:36 EST 1991:
  165.   Change Mktemp to mktmp (for the benefit of systems so brain-damaged
  166. that they do not distinguish case in external names -- and that for
  167. some reason want to load mktemp).  Try to get xsum0.out right this
  168. time (it somehow didn't get updated on 4 Feb. 1991).
  169.   Add note to libi77/README about adjusting the interpretation of
  170. RECL= specifiers in OPENs for direct unformatted I/O.
  171.  
  172. Thu Feb  7 17:24:42 EST 1991:
  173.   New option -r casts values of REAL functions, including intrinsics,
  174. to REAL.  This only matters for unportable code like
  175.     real r
  176.     r = asin(1.)
  177.     if (r .eq. asin(1.)) ...
  178. [The behavior of such code varies with the Fortran compiler used --
  179. and sometimes is affected by compiler options.]  For now, the man page
  180. at the end of f2c.ps is the only part of f2c.ps that reflects this new
  181. option.
  182.  
  183. Fri Feb  8 18:12:51 EST 1991:
  184.   Cast pointer differences passed as arguments to the appropriate type.
  185. This matters, e.g., with MSDOS compilers that yield a long pointer
  186. difference but have int == short.
  187.   Disallow nonpositive dimensions.
  188.  
  189. Fri Feb 15 12:24:15 EST 1991:
  190.   Change %d to %ld in sprintf call in putpower in putpcc.c.
  191.   Free more memory (e.g. allowing translation of larger Fortran
  192. files under MS-DOS).
  193.   Recognize READ (character expression)
  194. as formatted I/O with the format given by the character expression.
  195.   Update year in